package com.inspur.dgov.bsp.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户头像信息
 *
 * @author chiyupei
 * @version 1.0
 * @since 1.0
 */
@Data
@TableName("pub_user_avatar")
@ApiModel(value="PubUserAvatar对象", description="用户头像信息")
public class PubUserAvatar implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId("ID")
    private Long id;

    @ApiModelProperty(value = "用户ID")
    @TableField("USER_ID")
    private Long userId;

    @ApiModelProperty(value = "业务种类 1:头像")
    @TableField("KIND")
    private String kind;

    @ApiModelProperty(value = "文件名称")
    @TableField("NAME")
    private String name;

    @ApiModelProperty(value = "文件内容")
    @TableField("CONTENT")
    private byte[] content;

    @ApiModelProperty(value = "文件大小")
    @TableField("SIZE")
    private Long size;

    @ApiModelProperty(value = "文件类型")
    @TableField("EXT_TYPE")
    private String extType;

    @ApiModelProperty(value = "创建者ID")
    @TableField("CREATOR")
    private Long creator;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新者ID")
    @TableField("UPDATOR")
    private Long updator;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATE_TIME")
    private LocalDateTime updateTime;


}
